﻿#region License
//   Copyright 2010 John Sheehan
//
//   Licensed under the Apache License, Version 2.0 (the "License");
//   you may not use this file except in compliance with the License.
//   You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
//   Unless required by applicable law or agreed to in writing, software
//   distributed under the License is distributed on an "AS IS" BASIS,
//   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
//   See the License for the specific language governing permissions and
//   limitations under the License. 
#endregion

using System;
using System.Collections.Generic;
using System.Net;
using System.Web;
using WeiboSharp.Models;

namespace WeiboSharp
{
    public interface IHttp
    {
        ICredentials Credentials { get; set; }
        string UserAgent { get; set; }
        int Timeout { get; set; }

        bool FollowRedirects { get; set; }

		int? MaxRedirects { get; set; }


        List<Parameter> Headers { get; }
        List<Parameter> Parameters { get; }
        List<FileParameter> Files { get; }
        List<HttpCookie> Cookies { get; }
        Uri Url { get; set; }
        IWebProxy Proxy { get; set; }
        string RequestBody { get; set; }
        string RequestContentType { get; set; }

        void DeleteAsync(Action<WeiboResponse> action);
        void GetAsync(Action<WeiboResponse> action);
        void HeadAsync(Action<WeiboResponse> action);
        void OptionsAsync(Action<WeiboResponse> action);
        void PostAsync(Action<WeiboResponse> action);
        void PutAsync(Action<WeiboResponse> action);

        WeiboResponse Delete();
        WeiboResponse Get();
        WeiboResponse Head();
        WeiboResponse Options();
        WeiboResponse Post();
        WeiboResponse Put();
    }
}